/*******************************************************************************
 *  Copyright (c) 2010 Chase Technology Ltd.
 *  
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the GNU General Public License v3.0
 *  which is available at http://www.gnu.org/licenses/
 * 
 * Contributors:
 *     Doug Satchwell - initial API and implementation
 *******************************************************************************/
package org.jfunction.test;

import org.jfunction.annotations.Step;
import org.jfunction.annotations.StepContext;

public class MySteps2 {
	@StepContext(optional=true) private String ctx1;
	@StepContext("ctx1") private String ctx2;
	@StepContext private String text;
	private String notInContext;
	
	@Step("I click on the button called <button>")
	public void clickOnButton(String button) {
		System.out.println("clickOnButton "+button);
		System.out.println(ctx1);
		notInContext = "notInContext";
	}

	@Step("I go to page number <page>")
	public void goToPageNumber(int page) {
		System.out.println("goToPageNumber "+page);
		System.out.println(ctx1);
		System.out.println(notInContext);
	}
}
